/*
xing yongkang
College of Computer Science and Technology, Chongqing University, China.
*/

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int exp = 1;
    for(int i= 0;i<n; i++)
        exp = exp * 2;
    cout<<"2^"<<n<<" = "<<exp;
}